package com.blockmeta.bbs.businesslibrary.umeng;

import android.content.Context;

import com.blockmeta.bbs.businesslibrary.umeng.dialog.BlockMessageShare;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.ChainAndCollegeShare;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.CodeRankShare;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.F10Share;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.HomeRankShare;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.IndexShare;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.InviteShare;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.KlineShare;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.MarketShare;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.NormalWebShare;
import com.blockmeta.bbs.businesslibrary.umeng.dialog.PlatformShare;

/**
 * @author AirThor
 * @date 2020/3/24.
 */
public class DistributionShare {
    public static void distribution(ShareType shareType, Context context, ShareRouter shareRouter){
        switch (shareType){
            case NORMAL_WEB:
                new NormalWebShare(context,shareRouter);
                break;
            case CODE_RANK:
                new CodeRankShare(context,shareRouter);
                break;
            case MARKET:
                new MarketShare(context,shareRouter);
                break;
            case HOME_RANK:
                new HomeRankShare(context,shareRouter);
                break;
            case PLATFORM:
                new PlatformShare(context,shareRouter);
                break;
            case KLINE:
                new KlineShare(context,shareRouter);
                break;
            case INDEX:
                new IndexShare(context,shareRouter);
                break;
            case INVITE:
                new InviteShare(context,shareRouter);
                break;
            case F10:
                new F10Share(context,shareRouter);
                break;
            case CHAIN_COLLEGE:
                new ChainAndCollegeShare(context,shareRouter);
                break;
            case BLOCk_MESSAGE:
                new BlockMessageShare(context,shareRouter);
                break;
            default:
                break;
        }
    }
}
